﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace HotelManageSystem.Models
{
    /// <summary>
    /// Class Name:     DimissionModel
    /// Author:         Wangzx
    /// Creation Date:  2012-3-19
    /// Description:    员工离职
    /// QA:             
    /// -----------------------------------------
    /// </summary>
    public class DimissionModel
    {
        [Display(Name = "员工编号")]
        public int ID { get; set; }

        [Display(Name = "员工姓名")]

        public string Name { get; set; }

        [Display(Name = "性别")]
        public string Sex { get; set; }

        [Display(Name = "部门")]
        public string Department { get; set; }

        [Display(Name = "职位")]
        public string Post { get; set; }
         
        [Display(Name = "入职时间")]
        public DateTime JoinTime { get; set; }

        [Display(Name = "身份证号码")]
        public string Identitycard { get; set; }

        [Display(Name = "员工状态")]
        public string EmployeeStatus { get; set; }

        /***************************员工离职************************************/
        [Display(Name = "离职日期")]
        [Required(ErrorMessage = "必须输入离职日期")]
        [DataType(DataType.Date, ErrorMessage = "必须输入时间")]
        public DateTime DimissionDate { get; set; }

        [Display(Name = "备注")]
        [StringLength(40, ErrorMessage = "备注不能超过40个字符")]
        public string DimissionRemark { get; set; }

    }
}